﻿.kui-datagrid {
    border: 1px dotted #ccc;
    background-color:#fff;
}
.kui-datagrid .kui-td {
    height:25px;
    line-height:25px;
    font-size: 12px;
    border-color: #ccc;
    border-style: dotted;
    border-width: 0 0 1px 1px;
}

/*
    显示不下打省略号:
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
    width:...
*/
.kui-datagrid .kui-td span {
  padding:0 4px;
  text-overflow:ellipsis;
  white-space:nowrap;
  overflow:hidden;
  width:100%;
}
.kui-datagrid .kui-th,.kui-datagrid .kui-td-rowno{
    height:24px;
    /*border-color:#dddddd;*/
    background-color: #efefef;
    background: -webkit-linear-gradient(top,#F9F9F9 0,#efefef 100%);
    background: -moz-linear-gradient(top,#F9F9F9 0,#efefef 100%);
    background: -o-linear-gradient(top,#F9F9F9 0,#efefef 100%);
    background: linear-gradient(to bottom,#F9F9F9 0,#efefef 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#F9F9F9,endColorstr=#efefef,GradientType=0);
}
.kui-datagrid .kui-tr.kui-odd {
  background: #fafafa;
}
.kui-datagrid .kui-tr.kui-tr-selected {
  background: #ffe48d;
  color: #000000;
}

.kui-datagrid .kui-tr:not(.kui-tr-selected):hover {
  background: #eaf2ff;
  color: #000000;
  cursor: default;
}

.kui-datagrid .kui-td-rowno{
    text-align:center;
}
.kui-table .kui-td-checkbox span,.kui-datagrid .kui-td-rowno span{
    width:auto;/*让内容可以居中*/
}